/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author PR
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../../../model/baseModel';

const { adminPath } = useGlobSetting();

export interface U8WmsPuArr extends BasicModel<U8WmsPuArr> {
  autoid?: number; // autoid
  hid?: number; // hid
  ccode?: string; // 到货单号
  cvencode?: string; // 供应商编码
  cvenname?: string; // 供应商名称
  cwhcode?: string; // 仓库编码
  cwhname?: string; // 仓库名称
  cinvcode?: string; // 存货编码
  cinvname?: string; // 存货名称
  cinvstd?: string; // 规格型号
  cbatch?: string; // 批次
  iqty?: number; // 数量
}

export const u8WmsPuArrList = (params?: U8WmsPuArr | any) =>
  defHttp.get<U8WmsPuArr>({ url: adminPath + '/pu/arr/u8WmsPuArr/list', params });

export const u8WmsPuArrListData = (params?: U8WmsPuArr | any) =>
  defHttp.post<Page<U8WmsPuArr>>({ url: adminPath + '/pu/arr/u8WmsPuArr/listData', params });

export const u8WmsPuArrForm = (params?: U8WmsPuArr | any) =>
  defHttp.get<U8WmsPuArr>({ url: adminPath + '/pu/arr/u8WmsPuArr/form', params });

export const u8WmsPuArrSave = (params?: any, data?: U8WmsPuArr | any) =>
  defHttp.postJson<U8WmsPuArr>({ url: adminPath + '/pu/arr/u8WmsPuArr/save', params, data });

export const u8WmsPuArrDelete = (params?: U8WmsPuArr | any) =>
  defHttp.get<U8WmsPuArr>({ url: adminPath + '/pu/arr/u8WmsPuArr/delete', params });

export const u8WmsPuArrThListData = (params?: U8WmsPuArr | any) =>
  defHttp.post<Page<U8WmsPuArr>>({ url: adminPath + '/pu/arr/u8WmsPuArr/redListData', params });
